import request from '@/config/axios'

/*****************************FTP配置****************************** */

// 查询 分页
export const getFtpServerConfigPage = (params) => {
  return request.get({ url: '/ftpServerConfig/list', params })
}

// 删除
export const deleteFtpServerConfig = (data) => {
  return request.post({ url: '/ftpServerConfig/delete',data })
}

// 新增/修改
export const saveFtpServerConfig = (data) => {
  return request.post({ url: '/ftpServerConfig/saveOrUpdate',data })
}
// 更新状态
export const updateFtpServerConfigValid = (data) => {
  return request.post({ url: '/ftpServerConfig/isValid',data })
}

// 详情
export const getByIdFtpServerConfig = (params) => {
  return request.get({ url: '/ftpServerConfig/getById',params })
}

/*****************************FTP发布规则****************************** */

// 查询 分页
export const getFtpServerRulePage = (params: PageParam) => {
  return request.get({ url: '/ftpNoticeRule/list', params })
}

// 删除
export const deleteFtpServerRule = (data) => {
  return request.post({ url: '/ftpNoticeRule/delete',data })
}

// 新增/修改
export const saveFtpServerRule = (data) => {
  return request.post({ url: '/ftpNoticeRule/saveOrUpdate',data })
}
// 更新状态
export const updateFtpServerRuleValid = (data) => {
  return request.post({ url: '/ftpNoticeRule/isValid',data })
}

// 详情
export const getByIdFtpServerRule = (params) => {
  return request.get({ url: '/ftpNoticeRule/getById',params })
}